/*
 This file 'ArrayUtils' is part of Firebird Integrated Solution 1.0

 Copyright (c) 2020 Lincong

 Contact:  
        Email: lincong1987@gmail.com

        QQ: 159257119
 
 See Usage at http://www.jplatformx.com/firebird

 Create date: 2020-06-03 05:27
 */

define(function (require, exports, module) {

	// "use strict";

	var ArrayUtils = {};

	ArrayUtils.isEmpty = function (array) {
		return !this.isNotEmpty(array);
	};

	ArrayUtils.isNotEmpty = function (array) {
		if (array != null && array.length > 0) {
			return true;
		} else {
			return false;
		}
	};


	ArrayUtils.uniq = function (array) {
		var temp = []; //一个新的临时数组
		for (var i = 0; i < array.length; i++) {
			if (temp.indexOf(array[i]) == -1) {
				temp.push(array[i]);
			}
		}
		return temp;
	};


	module.exports = ArrayUtils;
});